<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="css/normalize.css">
    <!-- 引入Swiper文件 -->
    <link rel="stylesheet" href="css/swiper.min.css">
    <link rel="stylesheet" href="css/index.css">
</head>

<body>
    <section class="wrap">
        <!-- 头部区域 -->
        <header class="header">黑马面面</header>
        <!-- 导航栏部分 -->
        <nav class="nav">
            <a href="javascript:;" class="item">
                <img src="icons/icon1.png" alt="">
                <span>HR面试</span>
            </a>
            <a href="javascript:;" class="item">
                <img src="icons/icon2.png" alt="">
                <span>笔试</span>
            </a>
            <a href="javascript:;" class="item">
                <img src="icons/icon3.png" alt="">
                <span>技术面试</span>
            </a>
            <a href="javascript:;" class="item">
                <img src="icons/icon4.png" alt="">
                <span>模拟面试</span>
            </a>
            <a href="javascript:;" class="item">
                <img src="icons/icon5.png" alt="">
                <span>面试技巧</span>
            </a>
            <a href="javascript:;" class="item">
                <img src="icons/icon6.png" alt="">
                <span>薪资查询</span>
            </a>
        </nav>
        <!-- go模块 -->
        <section class="go">
            <a href="javascript:;"><img src="images/go.png" alt=""></a>
        </section>
    </section>
    <!-- 就业指导模块 -->
    <section class="content">
        <!-- 头部 -->
        <div class="con-hd">
            <h4>就业指导</h4>
            <a href="javascript:;" class="more">更多>></a>
        </div>
        <!-- 轮播图旋转木马模块 -->
        <div class="get_job_focus">
            <!-- Swiper -->
            <div class="swiper-container get_job_fo">
                <div class="swiper-wrapper">
                    <div class="swiper-slide">
                        <a href="javascript:;">
                            <img src="images/pic.png" alt="">
                            <p>老师教你应对面试技巧</p>
                        </a>
                    </div>
                    <div class="swiper-slide">
                        <a href="javascript:;">
                            <img src="images/ldh.jpg" alt="">
                            <p>老师教你应对面试技巧</p>
                        </a>
                    </div>
                    <div class="swiper-slide">
                        <a href="javascript:;">
                            <img src="images/3.jpg" alt="">
                            <p>老师教你应对面试技巧</p>
                        </a>
                    </div>
                </div>
            </div>
            <!-- Add Arrow 根据需求把这个代码放到container外面 添加左右箭头 -->
            <div class="swiper-button-next"></div>
            <div class="swiper-button-prev"></div>
        </div>
    </section>
    <!-- 充电学习模块 -->
    <section class="content ">
        <!-- 头部 -->
        <div class="con-hd">
            <h4 class="charging">充电学习</h4>
            <a href="javascript:;" class="more">更多>></a>
        </div>
        <!-- 轮播图学习模块 -->
        <div class="study">
            <!-- Swiper -->
            <div class="swiper mySwiper study_fo">
                <div class="swiper-wrapper ">
                    <div class="swiper-slide">
                        <a href="javascript:;">
                            <img src="images/pic1.png" alt="">
                            <h4>说地道英语，告别中式英语</h4>
                            <p><span class="font_red">156</span>人学习</p>
                        </a>
                    </div>
                    <div class="swiper-slide">
                        <a href="javascript:;">
                            <img src="images/pic2.png" alt="">
                            <h4>思维攻略金字塔思维提升写作能力</h4>
                            <p><span class="font_red">125</span>人学习</p>
                        </a>
                    </div>
                    <div class="swiper-slide">
                        <a href="javascript:;">
                            <img src="images/pic1.png" alt="">
                            <h4>说地道英语，告别中式英语</h4>
                            <p><span class="font_red">156</span>人学习</p>
                        </a>
                    </div>
                    <div class="swiper-slide">
                        <a href="javascript:;">
                            <img src="images/pic2.png" alt="">
                            <h4>思维攻略金字塔思维提升写作能力</h4>
                            <p><span class="font_red">125</span>人学习</p>
                        </a>
                    </div>
                    <div class="swiper-slide">
                        <a href="javascript:;">
                            <img src="images/pic1.png" alt="">
                            <h4>说地道英语，告别中式英语</h4>
                            <p><span class="font_red">156</span>人学习</p>
                        </a>
                    </div>

                </div>
                <div class="swiper-pagination"></div>
            </div>
        </div>
    </section>
    <footer class="footer">
        <a href="javascript:;" class="item">
            <img src="icons/home.png" alt="">
            <span>首页</span>
        </a>
        <a href="javascript:;" class="item">
            <img src="icons/net.png" alt="">
            <span>技术面试</span>
        </a>
        <a href="javascript:;" class="item">
            <img src="icons/ms.png" alt="">
            <span>模拟面试</span>
        </a>
        <a href="javascript:;" class="item">
            <img src="icons/user.png" alt="">
            <span>我的主页</span>
        </a>
    </footer>

    <script src="js/flexible.js"></script>
    <!-- 必须引入swiper的js文件 -->
    <script src="js/swiper.min.js"></script>
    <script>
        // 把第一个函数放到沙箱里，限制局部作用域 这个是就业指导轮播图
        (function() {
            var swiper = new Swiper('.get_job_fo', {
                // 能够显示的slider的个数
                slidesPerView: 2,
                // 每一个slider之间的距离
                spaceBetween: 30,
                // 让中间那个最大的图片在中间显示 如果不加这个属性，中间那个图片会贴着左边显示
                centeredSlides: true,
                loop: true,
                // 添加左右箭头
                navigation: {
                    nextEl: ".swiper-button-next",
                    prevEl: ".swiper-button-prev",
                },
            });
        })();

        //第二个轮播图函数
        (function() {
            var swiper = new Swiper(".study_fo", {
                // 显示的个数修改为2.2
                slidesPerView: 2.2,
                spaceBetween: 20,

            });
        })()
    </script>

</body>

</html>